//LPCTSTR		GetAppPath();
//void		ShowText(CString strText);
//
//void		ReadSysParams();
//void		SaveSysParams();

void BlockDCT(short block[][8], double *coeff);
void BlockIDCT(double *coeff_in, short block_out[][8], short maxval);

void GetBlock(int width, int height, int horz, int vert, short block[][8], unsigned char *data);
void SetBlock(int width, int height, int horz, int vert, short block[][8], unsigned char *data);

void gold6(short d[][63]);
void kt(unsigned char s[20], unsigned int k1, unsigned int& key);
void initstatus(unsigned char s[][20], int len, unsigned int key);
void nextstatus(unsigned char s[], unsigned char s1[], unsigned int key, unsigned char rn);
void addqueue(unsigned char sq[][20], unsigned int kq[], int &n_k, unsigned char s[], unsigned int k);

bool IsHas(int data[], int len, int d1);
